﻿using Infrastructure.Model;
using Microsoft.AspNetCore.Http;

namespace Infrastructure.Centers
{
    public interface IFileCenter
    {
        Task<ApiResult> Upload(string fileName, Stream fileContent);

        Task<ApiResult> Upload(IFormFile formFile);

        Task<ApiResult<FileInfos>> Download(string fileGuid);

        Task<ApiResult> Remove(string fileGuid);

        ApiResult IsExists(string fileGuid);

        ApiResult<FileInfos> GetInfo(string fileGuid);

        ApiResult<FileInfos[]> GetInfos(string[] fileGuid);
    }
}
